import http from './http'
// import Cookies from 'js-cookie'
// 登录功能接口
// const url1 = window.g.BaseURL1
const url  = window.g.BaseURL1//'https://nfzjszlb.jst.zj.gov.cn/tyzcpt/'
const url2 = window.g.BaseURL1//'https://nfzjszlb.jst.zj.gov.cn/tyzcpt/'
const url3 = window.g.BaseURL1//'https://nfzjszlb.jst.zj.gov.cn/tyzcpt/'
const url4 = window.g.BaseURL1//'https://nfzjszlb.jst.zj.gov.cn/tyzcpt/'
const url5 = window.g.BaseURL1//'https://nfzjszlb.jst.zj.gov.cn/tyzcpt/'
export function Login(pass, checkPass) {
  return http.get(url + 'api/user/login', {
    username: pass,
    password: checkPass
  })
}
export function loginWeb(pass, checkPass) {
  return http.postJson(url + 'api/farmerHouse/selfDingDing/dTalkAppUserInfo/loginWeb', {
    loginName: pass,
    password: checkPass
  })
}
export function farmerHouseGetToken(data) {
  return http.post(url + 'authserver/Auth/GetAccessToken', {
    code: data
  })
}
//faren
export function getFRSSOToken(data, data1) {
  return http.postJson(url + `api/houseNet/zlbsso/getFRSSOToken?ssotoken=${data}&ssoticket=${data1}`)
}
export function getPicture(data) {
    return http.get(url + `api/farmerHouse/zhejiangHouseTrainingEdu/getPicture/${data}`)
  }
export function farmerHouseList(data) {
  return http.postJson(url + 'farmerHouse/proxy/data', data)
}
export function LoadGridData(data) {
  return http.post(url + 'dataserver/api/LoadGridData', data)
}
export function insertDataView(data) {
  return http.post(url + 'dataserver/api/insertDataView', data)
}
export function OpenDataView(data) {
  return http.post(url + 'dataserver/api/LoadGridData', data)
}
export function LoadSendFormData(data) {
  return http.get(url + 'WorkFlowServer/api/LoadSendFormData', data)
}
export function PlatSendTask(data) {
  return http.post(url + 'WorkFlowServer/api/PlatSendTask', data)
}
export function dataServerOpenDataView(dataGuid, searchObject, token) {
  return http.get(url + `dataServer/api/OpenDataView?dataGuid=${dataGuid}&searchObject=${searchObject}&time=1641788972092&token=${token}`)
}
export function InsertDataView(data) {
  return http.post(url + 'dataServer/api/InsertDataView', data)
}
export function Atlases(data) {
  return http.postJson(url2 + 'api/farmerHouse/zhejiangHouseAtlas/atlases', data)
}
export function Artisans(data) {
  return http.postJson(url2 + 'api/farmerHouse/zhejiangHouseArtisan/artisans', data)
}
export function Atlas(data) {
  return http.postJson(url2 + 'api/farmerHouse/zhejiangHouseAtlas/atlas', data)
}
export function getArtisans(data) {
  return http.postJson(url2 + 'api/farmerHouse/zhejiangHouseArtisan/getArtisan', data)
}
export function getLikeIt(data) {
  return http.postJson(url2 + 'api/farmerHouse/houseArtisanPraise/get', data)
}
export function CancelLike(data) {
  return http.postJson(url2 + 'api/farmerHouse/houseArtisanPraise/delete', data)
}
//危改 个人申请 查询
export function getApplyPersonInfoByIdCardV2(data) {
  return http.get(url2 + 'api/farmerHouse/dangerHouseRemold/personApplyList?householderIdcard=' + data)
}
//危改 个人申请 保存
export function SaveApplyPersonInfoV2(data) {
  return http.postJson(url2 + 'api/farmerHouse/dangerHouseRemold/saveApplyPersonInfo/v2', data)
}
//危改 申请记录api/farmerHouse/dangerHouseProcess/processList
export function GetprocessList(data) {
  return http.get(url2 + 'api/farmerHouse/dangerHouseProcess/processList?objectNo=' + data)
}
export function saveApplyPersonInfo(data) {
  return http.postJson(url2 + 'api/farmerHouse/dangerHouseRemold/saveApplyPersonInfo', data)
}
export function appraisal(data) {
  return http.postJson(url2 + 'api/farmerHouse/dangerHouseProcess/appraisal', data)
}
//新危改提交
export function appraisalV2(data) {
  return http.postJson(url2 + 'api/farmerHouse/dangerHouseProcessV2/process', data)
}

export function PrepareCreateProcess(data) {
  return http.post(url + 'WorkFlowServer/api/PrepareCreateProcess', data)
}
export function CreateProcess(data) {
  return http.post(url + 'WorkFlowServer/api/CreateProcess', data)
}
// export function PlatSendTask (data) {
//     return http.post(url + 'WorkFlowServer/api/PlatSendTask', data)
// }
export function FileServerUpload(data) {
  return http.postJson(url + 'FileServer/api/Upload', data)
}
export function FileServerProxy(data) {
  return http.postJson(url3 + 'api/farmerHouse/proxy/data/v2', data)
}
//图集收藏
export function followSave(data) {
  return http.postJson(url2 + 'api/farmerHouse/houseAtlasCollect/save', data)
}
//图集取消收藏
export function followDelete(data) {
  return http.postJson(url2 + 'api/farmerHouse/houseAtlasCollect/delete', data)
}
//图集点赞
export function thumbsUpSave(data) {
  return http.postJson(url2 + 'api/farmerHouse/houseAtlasPraise/save', data)
}
//图集取消点赞
export function thumbsUpDelete(data) {
  return http.postJson(url2 + 'api/farmerHouse/houseAtlasPraise/delete', data)
}
//工匠收藏
export function ArtisanfollowSave(data) {
  return http.postJson(url2 + 'api/farmerHouse/houseArtisanCollect/save', data)
}
//工匠取消收藏
export function ArtisanfollowDelete(data) {
  return http.postJson(url2 + 'api/farmerHouse/houseArtisanCollect/delete', data)
}
//工匠点赞
export function ArtisanthumbsUpSave(data) {
  return http.postJson(url2 + 'api/farmerHouse/houseArtisanPraise/save', data)
}
//工匠取消点赞
export function ArtisanthumbsUpDelete(data) {
  return http.postJson(url2 + 'api/farmerHouse/houseArtisanPraise/delete', data)
}
export function getSystemCityCode(data) {
  return http.postJson(url3 + '/api/farmerHouse/cityCode/getSystemCityCode', data)
}

export function UploadByUrl(data) {
  return http.postJson(url + 'FileServer/api/UploadByUrl', data)
}

export function updateDataView(data) {
  return http.post(url + 'dataServer/api/updateDataView', data)
}

export function CreateProcessAndSendTask(data) {
  return http.post(url + 'workflowserver/api/CreateProcessAndSendTask', data)
}
export function getUserName(data) {
  return http.get(url3 + '/api/houseNet/zlbsso/user/v3?ticket=' + data)
}
export function getPreview(data) {
  return http.get(url + 'FileServer/api/Preview?fileGuid=' + data)
}
//注册接口
export function getRegister(data) {
  return http.post(url + 'j-dataexchangeserver/hzRegister/register', data)
}

//注册接口
export function ExecProcedure(data) {
  return http.post(url + 'DataServer/api/ExecProcedure', data)
}
//查询接口
export function GetData(data) {
  return http.postJson(url + 'api/rescatalog/commonDataManager/query', data)
}
//查询附件接口
export function GetFileData(data) {
  return http.get(url + 'FileServer/api/GetFilesInfo', data)
}
//删除附件接口
export function DelectFile(data) {
  return http.post(url + 'FileServer/api/Delete', data)
}

//浙政钉单点登录 公网dTalkAppUserInfoNet 正式dTalkAppUserInfo
export function dTalkAppUserInfo(data) {
  return http.get(url3 + '/api/houseNet/selfDingDing/dTalkAppUserInfoNet?authCode=' + data)
}

//获取图集收藏
export function AtlasCollection(data) {
  return http.postBody(url + 'api/farmerHouse/houseAtlasCollect/page', data)
}

//图集上传保存接口
export function AtlasUpload(data) {
  return http.postBody(url + 'api/gsa/sys/data/save', data)
}

//获取工匠收藏
export function ArtisanCollection(data) {
  return http.postBody(url + 'api/farmerHouse/houseArtisanCollect/page', data)
}
//监管平台登录
export function loginJGPT(data) {
  return http.get(url + 'api/user/login', data)
}
//监管平台上传附件
export function dataqueryFile(data) {
  return http.postJson(url + 'api/upload/file', data)
}
export function DataDelete(data) {
  return http.postJson(url + 'api/farmerHouse/houseApply/delete', data)
}
//获取图集点赞
export function AtlasThumbsUp(data) {
  return http.postBody(url + 'api/farmerHouse/houseAtlasPraise/get', data)
}

//获取行政区划
export function GetAdministrative(data) {
  return http.get(url + 'api/rescatalog/gsaCodeCity/listForTree/' + data)
}

//工匠签约量累加
export function SignNumAdd(data) {
  return http.postBody(url + '/api/farmerHouse/zhejiangHouseArtisan/ArtisanSignNumAdd/', data)
}
//图集签约量累加
export function PhotoNumAdd(data) {
  return http.postBody(url + '/api/farmerHouse/zhejiangHouseAtlas/atlasSignNumChange/', data)
}

export function saveDTalkRelUserInfo(data) {
  return http.postJson(url2 + 'api/farmerHouse/selfDingDing/saveDTalkRelUserInfo/v2', data)
}

//工匠签字接口
export function signGJ(data) {
  return http.postBody(url + 'j-dataexchangeserver/api/HXsign', data)
}
//农户签字接口
export function signNH(data) {
  return http.postBody(url + 'j-dataexchangeserver/api/NFHXsign', data)
}
//获取回调函数值
export function QuerySignCallback(data) {
  return http.postJson(url3 + 'api/farmerHouse/proxy/data/v2', data)
}
//获取回调函数值
export function QuerySignCallback1(data) {
  return http.get(url + 'api/farmerHouse/govSign/QuerySignCallback/?pdfFileFlag=' + data)
}
//更换单点登录统一支撑平台接口
//获取回调函数值
export function zlbssoUser(data) {
  return http.get(url + 'api/houseNet/zlbsso/user/v3?ticket=' + data)
}
//注册接口
export function getRegister1(data) {
  return http.postJson(url3 + '/api/farmerHouse/zlbsso//saveRel/v3', data)
}
//上传附件
export function dataTransFile(data) {
  return http.postJson(url3 + 'api/farmerHouse/proxy/dataTransFile/v2', data)
}

//预览文件
export function dataTransFilePreview(data) {
  return http.getImage(url3 + 'api/farmerHouse/proxy/dataTransFile/v2', data)
}
// 推送门牌
export function doorplate(data) {
  return http.postJson(url + 'api/farmerHouse/farmhouse-number/doorplate/v1', data)
}
// 根据身份证号查询贷款信息
export function GetPrecredit(data) {
  return http.postJson(url3 + 'api/farmerHouse/offlineLoanPrecredit/getPrecreditInfoByCertNum', data)
}
// 贷款预授信提交
export function LoanPrecreditSubmit(data) {
  return http.postJson(url3 + 'api/farmerHouse/offlineLoanPrecredit/submit', data)
}

// 多图集上传
export function zhejiangHouseAtlasSave(data) {
  return http.postJson(url3 + 'api/farmerHouse/zhejiangHouseAtlas/save', data)
}

// 多文件id查询url
export function selectListByIds(data) {
  return http.get(url3 + '/api/upload/selectListByIds?id=' + data)
}
// 上传图片带水印接口
export function drawImg(data) {
  return http.postJson(url3 + 'j-dataexchangeserver/image/drawImg', data)
}
export function getDoorplateList(data) {
  return http.postJson(url + 'api/farmerHouse/farmhouse-number/getDoorplateList', data)
}
//获取发送手机短信
export function sendBusinessMessage(data) {
  return http.postJson(url + 'api/farmerHouse/sms/sendBusinessMessage', data)
}
// 服务存量房屋基本信息
export function existHouseBaseInfo(data) {
  return http.get(url3 + 'api/farmerHouse/share/existHouseBaseInfo?' + data)
}
// 鉴定公司列表
export function getAuthenticateUnit(data) {
  return http.postJson(url3 + 'api/gsa/sys/data/query', data)
}

// 第三方入住
export function getThirdCompanySettled(data) {
  return http.postJson(url3 + '/api/farmerHouse/zhejiangHouseTechnicalUnit/thirdCompanySettled', data)
}
// 安全排查房屋数据

export function houseCheckDetail(data) {
  return http.get(url5 + 'houseCheck/detail/v1?' + data)
}
// 安全排查数据修改
export function saveOrUpdate(data) {
  return http.postJson(url5 + 'houseCheck/saveOrUpdate/v1', data)
}
// 鉴定公司鉴定编号
export function getNum(data) {
  return http.postJson(url3 + 'api/farmerHouse/numGenerate/getNum', data)
}
// 安全排查数据修改
export function changePcztByFwId(data) {
  return http.postJson(url5 + 'houseCheck/updateCheckStatus/v1', data)
  //return http.post( url5 + 'houseCheck/changePcztByFwId',data)
}
// 安全排查数据删除
export function houseCheckDelete(data) {
  var p = {}
  p.fwIds = data.fwIds
  p.isDelete = 1
  return http.postJson(url5 + 'houseCheck/deleteCheckInfo/v1', p)
  // return http.postJson( url5 + 'houseCheck/delete?fwid='+data)
}
// 获取新的行政区划代码
export function houseCheckcityCodeTransFrom(data) {
  return http.postJson(url5 + 'houseCheck/cityCodeTransFrom?oldCityCode=' + data)
}
// 本地测试
export function textData(data, data1, data2, data3, data4) {
  return http.get(url5 + `houseCheck/getHouseCheckList?pageSize=${data}&pageNum=${data1}&pczt=${data2}&cityCode=${data3}&fwlx=${data4}`)
}
//安全排查接口
export function seauthData(pageSize, pageNo, checkStatus, cityCode) {
  var p = {}
  p.pageSize = pageSize
  p.pageNo = pageNo
  p.checkStatus = checkStatus
  p.cityCode = '' //cityCode;

  return http.postJson(url5 + 'houseCheck/checkInfoList', p)
}
// getNumberData
export function getNumberData(data, data2, data3) {
  return http.get(url5 + `houseCheck/getCountByPczt?cityCode=${data}&pczt=${data2}&fwlx=${data3}`)
}
export function MP(ak) {
  return new Promise(function (resolve, reject) {
    window.onload = function () {
      resolve(window.BMap)
      //插入script标签后 会在window上挂一BMap属性,此为跨域获取的数据
    }
    var script = document.createElement('script')
    script.type = 'text/javascript'
    script.src = 'http://api.map.baidu.com/api?v=2.0&ak=' + ak + '&callback=init'
    script.onerror = reject
    document.head.appendChild(script)
    //插入此标签后 会在window上挂一BMap属性,此为跨域获取的数据
  })
}
//将用户推送到gsa
export function sendUserToGsa(data) {
  return http.postJson(url + `/api/user/userManagerForHangZhou/saveOrUpdateUser`, data)
}

//工匠承接项目新增和更新
export function houseCraftsmanprojectSave(data) {
  return http.postJson(url + `/api/farmerHouse/houseCraftsmanproject/saveOrUpdate`, data)
}
//获取用户基本信息
export function getUserInfoGSa(data) {
  return http.get(url2 + `api/user/userManagerForHangZhou/getUserInfo/` + data)
}
//获取gsa的枚举/api/sysmaintan/dataEnum/getDataEnumByGroupName
export function getDataEnumByGroupName(data) {
  return http.postJson(url2 + `api/sysmaintan/dataEnum/getDataEnumByGroupName/`, data)
}
//获取gsa的citycode枚举
export function getDatalistForTree(data) {
  return http.get(url2 + `api/rescatalog/gsaCodeCity/listForTree/` + data)
}

//签合同接口
export function HXSignForPlatForm(data) {
  return http.postJson(url2 + `api/farmerHouse/govSign/HXSignForPlatForm`, data)
}

//农房安全接口
export function houseCheckFwCheckList(data) {
  return http.postJson(url + `/api/farmerHouse/houseCheckFwCheck/countList`, data)
}
//农房安全接口
export function houseCheckFwCheckPage(data) {
  return http.postJson(url + `/api/farmerHouse/houseCheckFwCheck/pageList`, data)
}
//农房安全接口
export function houseCheckSupervisionFwCheckPage(data) {
  return http.postJson(url + `/api/farmerHouse/houseCheckSupervisionFwCheck/pageList`, data)
}
//农房安全接口
export function houseCheckFwRoleUser(data) {
  return http.postJson(url + `/api/farmerHouse/houseCheckRoleUserCountry/getRole/` + data)
}
//农房安全详情接口
export function houseCheckFwCheckDetails(data) {
  return http.get(url2 + `api/farmerHouse/houseCheckFwCheck/get/` + data)
}
//农房钉督详情接口
export function getFwCheck(data) {
  return http.get(url2 + `api/farmerHouse/houseCheckSupervisionFwCheck/get/` + data)
}
//农房安全保存接口
export function FwsaveOrUpdate(data) {
  return http.postJson(url + `api/farmerHouse/houseCheckFwCheck/saveOrUpdate`, data)
}
//浙政钉督查接口
export function saveFwCheck(data) {
  return http.postJson(url + `api/farmerHouse/houseCheckSupervisionFwCheck/saveOrUpdate`, data)
}
//督查列表
export function houseCheckSupervisionFwCheckList(data) {
  return http.postJson(url + '/api/farmerHouse/houseCheckSupervisionFwCheck/countList', data)
}
//农房安全删除接口
export function FwsaveOrDelete(data) {
  return http.postJson(url + `api/farmerHouse/houseCheckFwCheck/delete/` + data)
}
//农房安全删除接口
export function FwsaveOrDeleteFwCheck(data) {
  return http.postJson(url + `api/farmerHouse/houseCheckSupervisionFwCheck/delete/` + data)
}
//农房安全上传接口
export function uploadFile(data) {
  return http.postJson(url3 + 'api/upload/file', data)
}
export function uploadFileBiz(data) {
  return http.postJson(url + '/api/upload/file/biz', data)
}
//农房安全上传图片查询
export function selectListFile(data) {
  return http.get(url + `api/upload/selectListByIds`, data)
}
//农房安全上传图片删除
export function deleteFile(data) {
  return http.postJson(url + `api/upload/delete`, data)
}
//公安数据
export function getPoliceData(data) {
  return http.postJson(url + `/api/farmerHouse/proxy/data/v2`, data)
}
// 根据社会统一信用代码查询特殊行业信息
export function getTeshuInfo(data) {
  return http.postJson(url + `api/farmerHouse/bizShareMaker/getTeshuInfo`, data)
}
// 根据社会统一信用代码查询宗教信息
export function getZongJiaoInfo(data) {
  return http.postJson(url + `api/farmerHouse/bizShareMaker/getZongJiaoInfo`, data)
}
// 根据社会统一信用代码查询宗教信息
export function getuserRelManyBiz(data) {
  return http.postJson(url + `/api/houseNet/zlbsso/userRelManyBiz?username=` + data)
}
//微信单点
export function getwxAppletUser(data) {
  return http.get(url + 'api/houseNet/zlbsso/wxAppletUser?ticket=' + data)
}

//督查权限接口
export function houseCheckSupervisionFwRoleUser(data) {
  return http.postJson(url + '/api/farmerHouse/houseCheckSupervisionFwRoleUser/getRole/' + data)
}

//大数据
export function housebigDataForUser(data) {
  return http.postJson(url + 'api/farmerHouse/proxy/bigDataForUser', data)
}

//工匠个人信息维护查询
export function zhejiangHouseArtisan(data) {
  return http.postJson(url + '/api/farmerHouse/zhejiangHouseArtisan/getArtisanBaseInfo', data)
}

//排查列表接口
export function zhejiangHouseArtisanUp(data) {
  return http.postJson(url + '/api/farmerHouse/zhejiangHouseArtisan/saveOrUpdate', data)
}

//排查列表接口
export function houseCheckFwCheckCountry(data, cityCode, hzXm, data2) {
  return http.get(url + '/api/farmerHouse/houseCheckFwCheckCountry/pageList?fwyt=' + data + '&cityCode=' + cityCode + '&hzXm=' + hzXm + '&pageNo=1' + '&pageSize=1000000000&isCheck=' + data2)
}

//排查列表接口新增
export function houseCheckFwCheckCountrySave(data) {
  return http.postJson(url + '/api/farmerHouse/houseCheckFwCheckCountry/saveOrUpdateV2', data)
}

//排查接口回显
export function houseCheckFwCheckCountryGet(data) {
  return http.postJson(url + '/api/farmerHouse/houseCheckFwCheckCountry/getV2' , data)
}

//排查列表数量
export function houseCheckSupervisionFwCheckList1(data) {
  return http.postJson(url + 'api/farmerHouse/houseCheckSupervisionFwCheck/countZJFPCList', data)
}
export function dangerHouseProcessremoldAuth(data) {
  return http.postJson(url + '/api/farmerHouse/dangerHouseProcess/remoldAuth', data)
}
//提交困难群众危改
export function dangerHouseProcessremoldAuthV2(data) {
  return http.postJson(url + '/api/farmerHouse/dangerHouseProcessV2/process', data)
}
export function dangerHousesaveUpdateAllAuthInfo(data) {
  return http.postJson(url + '/api/farmerHouse/dangerHouseRemoldAuth/saveUpdateAllAuthInfo', data)
}
//修改危改鉴定公司保存
export function dangerHousesaveUpdateAllAuthInfoV2(data) {
  return http.postJson(url + '/api/farmerHouse/dangerHouseRemoldAuth/saveUpdateAllAuthInfoV2', data)
}
export function dangerHousesavegetAllAuthInfo(data) {
  return http.postJson(url + '/api/farmerHouse/dangerHouseRemoldAuth/getAllAuthInfo', data)
}
//危改困难家庭
export function dangerHousesavegetAllAuthInfoV2(data) {
  return http.postJson(url + '/api/farmerHouse/dangerHouseRemoldAuth/getAllAuthInfoV2', data)
}
export function dangerHouseRemoldList(data) {
  return http.postJson(url + 'api/farmerHouse/dangerHouseRemold/list', data)
}
//危改困难户查询
export function dangerHouseRemoldListKNH(data){
  return http.postJson(url + 'api/farmerHouse/houseRemoldV2BaseInfo/authenticateList', data)
}
// export function dangerHouseProcessremoldAuth(data) {
//   return http.postJson(url + '/api/farmerHouse/dangerHouseProcess/remoldAuth',data)
// }
// export function dangerHousesaveUpdateAllAuthInfo(data) {
//   return http.postJson(url + '/api/farmerHouse/dangerHouseRemoldAuth/saveUpdateAllAuthInfo',data)
// }
// export function dangerHousesavegetAllAuthInfo(data) {
//   return http.postJson(url + '/api/farmerHouse/dangerHouseRemoldAuth/getAllAuthInfo',data)
// }
// export function uploadFileBiz (data) {
//   return http.postJson(url + '/api/upload/file/biz', data)
// }
//oss文件上传
export function ossUploadFiles(data) {
  return http.postJson(url + 'api/upload/oss/files', data)
}

//oss文件预览
export function osspreviewFiles(data) {
  return http.get(url + 'api/upload/oss/preview?fileId=' + data)
}
//oss 文件删除
export function ossdelteFiles(data) {
  return http.postJson(url + 'api/upload/oss/delete', data)
}
export function submitPatrolInfo(data) {
  return http.postJson(url + 'api/farmerHouse/housePatrol/submitPatrolInfo', data)
}
export function saveAuthInfo(data) {
  return http.postJson(url + 'api/farmerHouse/dangerHouseRemold/saveAuthInfo', data)
}
//保存鉴定信息(新危改)
export function saveAuthInfoV2(data){
  return http.postJson(url + 'api/farmerHouse/dangerHouseRemold/saveAuthInfoV2', data)
}
//
export function personToDoList(data) {
  return http.postJson(url + 'api/farmerHouse/dangerHouseRemold/personToDoList', data)
}
//危改申请我的待办
export function personToDoListV2(data){
  return http.postJson(url + 'api/farmerHouse/dangerHouseProcessV2/personToDoList', data)
}

//根据citycode以及统一社会信用代码判断该账号是否注册到当前地市
export function judgeIsExist(data, data1) {
  return http.postJson(url + '/api/farmerHouse/zlbsso/userRelManyBiz?username=' + data + '&cityCode=' + data1)
}
//通过危房objectNo获取安全的objectNo
export function objectNoTransfer(data) {
  return http.get(url + 'api/farmerHouse/dangerHouseRemold/objectNoTransfer?objectNo=' + data)
}

//gsa 建房申请保存接口
export function JFsaveOrUpdate(data) {
  return http.postJson(url + '/api/farmerHouse/houseApply/saveOrUpdate', data)
}

//gsa 合并建房件列表接口
export function JFDataList(data) {
  return http.get(url + '/api/farmerHouse/houseApply/list?idcard=' + data + '&pageNum=1&pageSize=100000')
}

//生成流水号
export function numGenerateGetNum(data) {
  return http.postJson(url + '/api/farmerHouse/numGenerate/getNum/v2', data)
}

//危改判断个人是否关联企业
export function QueryListToGJORFW(data) {
  return http.postJson(url + '/api/farmerHouse/houseRemoldUnitProjectPerson/list', data)
}
//危改选择鉴定机构
export function selectTechnicalList(data) {
  return http.postJson(url + '/api/farmerHouse/zhejiangHouseTechnicalUnit/selectTechnicalList', data)
}

//动态更改测试环境正式环境
export function changeApp(data) {
  return http.get(url + '/api/houseNet/zlbsso/getRedirectUrl')
}

//用户是否新建过房屋
export function existHouse(data) {
  return http.get(url + '/api/farmerHouse/houseApply/existHouse?idcard=' + data)
}

//删除gsa存的数据
export function houseApplyDelete(data) {
  return http.postJson(url + '/api/farmerHouse/houseApply/delete', data)
}

//更新id
export function houseApplyUpdate(data) {
  return http.postJson(url + '/api/farmerHouse/houseApply/update', data)
}

//培训教育部门机构和标题信息
export function zhejiangHouseTrainingEdu(data) {
  return http.postJson(url + 'api/farmerHouse/zhejiangHouseTrainingEdu/listAuth?cityCode=' + data.cityCode + '&idCard=' + data.idCard)
}
//培训交易详情页回显
export function zhejiangHouseTrainingEduByid(data) {
  return http.get(url + 'api/farmerHouse/zhejiangHouseTrainingEdu/get/' + data)
}
//我要报名
export function zhejiangHouseTrainingEduByRE(data) {
  return http.postJson(url + 'api/farmerHouse/zhejiangHouseTrainingEdu/registration', data)
}

//我要报名 竞赛
export function zhejiangHouseTrainingEduByREJS(data) {
  return http.postJson(url + 'api/farmerHouse/zhejiangHouseTrainingEdu/registrationJS', data)
}

//我要报名更新
export function zhejiangHouseTrainingEduBysubmit(data) {
  return http.postJson(url + 'api/farmerHouse/zhejiangHouseTrainingEdu/submit', data)
}

//提交更新  竞赛
export function zhejiangHouseTrainingEduBysubmitJS(data) {
  return http.postJson(url + 'api/farmerHouse/zhejiangHouseTrainingEdu/submitJS', data)
}

//工匠管理-竞赛管理
export function zhejiangHouseArtisanRacePublic(data) {
  return http.postJson(url + '/api/farmerHouse/zhejiangHouseArtisanRacePublic/list/1/10000', data)
}

//浙里办工匠报名
export function zhejiangHouseArtisanRaceInfo(data) {
  return http.postJson(url + '/api/farmerHouse/zhejiangHouseArtisanRaceInfo/save', data)
}
//政策法规查询接口
export function zhejiangJffwNfzc1(data) {
  return http.postJson(url + '/api/farmerHouse/zhejiangJffwNfzc/list/1/999', data)
}

//建房知识查询接口
export function zhejiangJffwJfzs(data) {
  return http.postJson(url + '/api/farmerHouse/zhejiangJffwJfzs/get', data)
}

//建房知识查询接口
export function zhejiangHouseArtisanSincerity(data2) {
  return http.postJson(url + `/api/farmerHouse/zhejiangHouseArtisanSincerity/list/1/10000`, data2)
}

//使用最新的登录接口
export function LoginNew(data2) {
  return http.postJson(url + `/api/farmerHouse/platformLogin/regulatoryPlatform`, data2)
}

// 企业施工负责人 四平台
export function companyData(data) {
  return http.postJson('https://nfzjszlb.jst.zj.gov.cn/tyzcpt/' + '/api/farmerHouse/proxy/company/v1', data)
}
// 企业施工负责人 工匠
export function houseRemoldUnitBuildPersonRel(data) {
  return http.postJson(url + '/api/farmerHouse/houseRemoldUnitBuildPersonRel/get', data)
}

// 企业施工负责人列表接口
export function houseRemoldUnitBuildPerson(pageNum, pageSize, data) {
  return http.postJson(url + `/api/farmerHouse/houseRemoldUnitBuildPerson/list/${pageNum}/${pageSize}`, data)
}

// 企业施工负责人新增接口
export function houseRemoldUnitBuildPersonSave(data) {
  return http.postJson(url + `/api/farmerHouse/houseRemoldUnitBuildPerson/save`, data)
}

// 信用评价
export function zhejiangHouseArtisanSincerityArtisanGrade(data) {
  return http.postJson(url + `/api/farmerHouse/zhejiangHouseArtisanSincerity/artisanGrade `, data)
}

// 施工负责人
export function houseRemoldUnitBuildPersonSG(data) {
  return http.postJson(url + `/api/farmerHouse/houseRemoldUnitBuildPerson/get`, data)
}

// 项目负责人
export function houseRemoldUnitProjectPersonXM(data) {
  return http.postJson(url + `/api/farmerHouse/houseRemoldUnitProjectPerson/get`, data)
}

// 项目负责人
export function houseRemoldUnitBuildPersonXM(data) {
  return http.postJson(url + `/api/farmerHouse/houseRemoldUnitBuildPerson/getRoleOfUnit`, data)
}
//地图 判断是否上图
export function IfMapToResult(data) {
  return http.get(url + '/api/gisrest/arcgis/mapServer/imageMap/建房审批定位图层/query', data)
}
//修改地图属性值
export function IfMapToApplyEdit(data) {
  return http.postJson(url + `/api/gisrest/arcgis/featurelayer/建房审批定位图层/2/applyEdits`, data)
}

//风貌
export function zhejiangHouseFeature(data) {
  return http.get(url + `/api/farmerHouse/zhejiangHouseFeature/selectList/1/4/` + data)
}

//是否查看运维公告
export function housePublicVersionPerson(data) {
  return http.postJson(url + `/api/farmerHouse/housePublicVersionPerson/isViewPub`, data)
}
//新增运维公告
export function housePublicVersionPersonSave(data) {
  return http.postJson(url + `/api/farmerHouse/housePublicVersionPerson/save`, data)
}

//根据手机号获取公司信息
export function housePublichouseRemoldUnitBuildPerson(data) {
  return http.postJson(url + `/api/farmerHouse/houseRemoldUnitBuildPerson/getUnitList`, data)
}
//施工负责人删除接口
export function housePublichouseRemoldUnitBuildPersonDelete(data) {
  return http.postJson(url + `/api/farmerHouse/houseRemoldUnitBuildPerson/delete`, data)
}

//安全排查  /houseInspect/inspectList/v2

export function housePublichouseRemoldUnitBuildinspectList(data){
    return http.postJson(url+`/api/farmerHouse/houseInspect/inspectList/v2`,data)
}
export function getDifficultFamilies(data){
  return http.postJson(url+`/api/farmerHouse/share/getDifficultFamilies`,data)
}

//通过自建房排查编号获取坐标串
export function getZjfGeomP(data) {
  return http.get(url + '/api/farmerHouse/tfwZjf/getZjfGeomP?yhfwbh=' + data)
}
export function getHouseRemoldList(data){
  return http.postJson(url+`/api/farmerHouse/houseRemoldV2BaseInfo/getHouseRemoldList`,data)
}
export function processList(data){
  return http.postJson(url+`/api/farmerHouse/dangerHouseProcessV2/processList`,data)
}
export function houseRemoldV2Difficultyget(data){
  return http.postJson(url+`/api/farmerHouse/houseRemoldV2Difficulty/get`,data)
}
export function houseRemoldV2HousingStatusget(data){
  return http.postJson(url+`/api/farmerHouse/houseRemoldV2HousingStatus/get`,data)
}
export function tFwZjfFxftgetSafe(data) {
  return http.get(url + '/api/farmerHouse/tFwZjfFxft/getSafe?checkNumber=' + data)
}
export function dangerHouseRemoldauditInfoV2(data){
  return http.postJson(url+`/api/farmerHouse/dangerHouseRemold/auditInfoV2`,data)
}
export function houseRemoldFileGroupgetV2(data){
  return http.postJson(url+`/api/farmerHouse/houseRemoldFileGroup/getV2`,data)
}
export function getRenovateDetail(objectNo) {
  return http.get(url + `/api/farmerHouse/houseRemoldV2Renovate/getRenovateDetail/${objectNo}`)
}
export function houseRemoldV2Renovateget(data){
  return http.postJson(url+`/api/farmerHouse/houseRemoldV2Renovate/get`,data)
}
export function savePatrolHouseInfo(data){
  return http.postJson(url+`/api/farmerHouse/housePatrol/savePatrolHouseInfo`,data)
}
//人脸识别接口
export function getRequestId(data){
    return http.postJson(url+`/api/farmerHouse/zlbsso/getRequestId`,data)
  }
export function tFwZjfNewlist(data){
  return http.postJson(url+`/api/farmerHouse/tFwZjfNew/list`,data)
}
export function applyUpdateDetail(data){
  return http.postJson(url+`/api/farmerHouse/tfwZjf/applyUpdateDetail`,data)
}
//农污设施选择
export function getxjnfGethy(data){
  return http.postJson(url+`/api/farmerHouse/xjnf/Gethy`,data)
}
//浙政钉获取农房码
export function farmhouseNumberApply(data2) {
  return http.postJson(url + `api/farmerHouse/farmhouse-number/apply`, data2)
}
//关联无房户危改
export function getApplyPersonInfoByIdCard(data) {
  return http.get(url2 + 'api/farmerHouse/dangerHouseRemold/getApplyPersonInfoByIdCard?householderIdCard=' + data)
}
//推送图审
export function farmerHouseProjectPush(data){
  return http.postJson(url + `api/farmerHouse/proxy/farmerHouseProjectPush`, data)
}
//浙政钉消息
export function dTalkWorkNoticeNetNfBiz(data){
  return http.postJson(url + `api/farmerHouse/selfDingDing/dTalkWorkNoticeNetNfBiz/v2`, data)
}
//获取自建房危房整治数据
export function queryList(data){
  return http.postJson(url + `api/farmerHouse/houseRemoldV2BaseInfo/queryList`, data)

}

//美丽乡居贷--获取列表
export function zhejiangVillageLoanInfolist(data){
  return http.postJson(url + `api/farmerHouse/zhejiangVillageLoanInfo/list`, data)
}

//常态化巡查列表
export function houseRemoldBaseInfoNewXclist(data){
  return http.postJson(url + `api/farmerHouse/houseRemoldBaseInfoNewXc/list/v3`,data)
}

// 常态化巡查房屋详情

export function tfwZjfGetFW(){
  return http.get(url + `api/farmerHouse/tfwZjf/getFW/v2`)
}

//常态化巡查信息保存或提交(自动流入安全核查)

export function savePatrolInfo(data){
  return http.postJson(url + `api/farmerHouse/housePatrol/savePatrolInfo/v2`,data)
}

//常态化巡查信息获取(当前任务)

export function getCheckInfosByFwbhTaskGet(yhfwbh,taskCode){
  return http.get(url + `api/farmerHouse/houseRemoldBaseInfoNewXc/getCheckInfosByFwbhTask?yhfwbh=${yhfwbh}&taskCode=${taskCode}`)
}